<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core3" prefix="select" %>
	<form id="input" class="form-horizontal" method="post" action="editEnumSort?enumsortid=${enumsortid}" >
		<div class="form-group">
			<label for="userid" class="col-md-2 control-label"><s:text name="enum.code"/></label>
			<div class="col-md-10">
				<input type="text" class="form-control required" id="code" placeholder="<s:text name="enum.code"/>" name="code" value="${enumSort.code }">
			</div>
		</div>
		
		<div class="form-group">
			<label for="userid" class="col-md-2 control-label"><s:text name="enum.name"/></label>
			<div class="col-md-10">
				<input type="text" class="form-control required" id="name" placeholder="<s:text name="enum.name"/>" name="name" value="${enumSort.name }" >
			</div>
		</div>
		
		<div class="form-group">
			<label for="userid" class="col-md-2 control-label"><s:text name="enum.enumword"/></label>
			<div class="col-md-10">
				<input type="text" class="form-control required" id="enumword" placeholder="<s:text name="enum.enumword"/>" name="enumword"  value="${enumSort.enumword }">
			</div>
		</div>
		
		<div class="form-group">
			<label for="userid" class="col-md-2 control-label"><s:text name="enum.remark"/></label>
			<div class="col-md-10">
				<input type="text" class="form-control" id="remark" placeholder="<s:text name="enum.remark"/>" name="remark"  value="${enumSort.remark }">
			</div>
		</div>
		
		<div class="form-group">
	       <div class="col-md-5 col-md-offset-2 control-label">
	         	<button type="button" class="btn btn-warning" onClick="ajaxContent('editEnumSort?enumsortid=${enumsortid}')"><s:text name="common.return"/></button>
	         	<button type="submit" id="submit" class="btn btn-primary"><s:text name="common.save"/></button>
	       </div>
       </div>
	</form>
	
<script type="text/javascript">	
	$(function(){
		$("#input").validate({
			submitHandler: function(form){  
				$("#submit").attr("type","button");
				ajaxForm('content','input','aaa');
            }
		});
	});
</script>
